﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vehicle.Model
{
    /// <summary>
    /// Copyright (C) M-Tear团队
    /// 文 件 名：ComponentsInfo.cs
    /// 版    本：v1.00.0000
    /// 创建标识：2009-08-20    Created by 杨光远 V1.00.0000
    /// 功能说明：通用实体层数（主要用于通用存储过程,通用逻辑,数据层之间传递信息）
    /// 注意事项：需了解个属性之间的具体作用,和构造函数的选择
    /// 
    /// 更新记录：
    /// 
    /// </summary>
    public class ComponentsInfo
    {
        public ComponentsInfo()
        {
        }
        #region Model
        private int _startIndex;
        private int _endIndex;
        private string _tableName;
        private string _order;
        private DateTime _StartTime;
        private DateTime _EndTime;
        private string _count;
        private string _condition;
        private string _result;
        private string _ID;
        private string _tcondition;
        private string _tresult;
        private string _scondition;
        private string _sresult;
        private bool _decide;
        private string _title;
        private string _tCount;
        /// <summary>
        /// 通用删除构造函数
        /// </summary>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件判断一</param>
        /// <param name="_result">条件判断二</param>
        public ComponentsInfo(string _tableName, string _condition, string _result)
        {
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;

        }
        /// <summary>
        /// 通用更新只能更新一个值
        /// </summary>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件判断一</param>
        /// <param name="_result">结构一</param>
        /// <param name="_tcondition">条件判断二</param>
        /// <param name="_tresult">结构二</param>
        public ComponentsInfo(string _tableName, string _condition, string _result, string _tcondition, string _tresult)
        {
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.Tcondition = _tcondition;
            this.Tresult = _tresult;
        }

        /// <summary>
        /// 通用删除构造函数
        /// </summary>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件判断一</param>
        /// <param name="_result">条件判断二</param>
        public ComponentsInfo(string _tableName, string _condition, string _result,string _order)
        {
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.order = _order;
        }
  
      
        /// <summary>
        /// 通用通过时间和条件一获得总数
        /// </summary>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件判断一</param>
        /// <param name="_result">条件判断二</param>
        /// <param name="_count">数量</param>
        /// <param name="_StartTime">开始时间</param>
        /// <param name="_EndTime">结束时间</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(string _tableName, string _condition, string _result,string _count,DateTime _StartTime,DateTime _EndTime, string _order)
        {
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.Count = _count;
            this.StartTime = _StartTime;
            this.EndTime = _EndTime;
            this.order = _order;
        }



        /// <summary>
        /// 通用通过时间和3个条件获得总数
        /// </summary>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件判断一</param>
        /// <param name="_result">条件判断二</param>
        /// <param name="_count">数量</param>
        /// <param name="_StartTime">开始时间</param>
        /// <param name="_EndTime">结束时间</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(string _tableName, string _condition, string _result, string _tcondition, string _tresult, string _scondition, string _sresult, string _count, DateTime _StartTime, DateTime _EndTime, string _order)
        {
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.Tcondition = _tcondition;
            this.Tresult = _tresult;
            this.Scondition = _scondition;
            this.Sresult = _sresult;
            this.Count = _count;
            this.StartTime = _StartTime;
            this.EndTime = _EndTime;
            this.order = _order;
        }


      

        /// <summary>
        /// 通用通过时间获得总数
        /// </summary>
        /// <param name="_tableName">表名</param>
        /// <param name="_count">数量</param>
        /// <param name="_StartTime">开始时间</param>
        /// <param name="_EndTime">结束时间</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(string _tableName,  string _count,  DateTime _StartTime, DateTime _EndTime, string _order)
        {
            this.tableName = _tableName;
            this.Count = _count;
            this.StartTime = _StartTime;
            this.EndTime = _EndTime;
            this.order = _order;
        }


        /// <summary>
        /// 通用通过标题和时间获得总数
        /// </summary>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件一</param>
        /// <param name="_result">结果一</param>
        /// <param name="_count">数量</param>
        /// <param name="_title">标题</param>
        /// <param name="_tCount">标题匹配结果</param>
        /// <param name="_StartTime">开始时间</param>
        /// <param name="_EndTime">结束时间</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(string _tableName, string _condition, string _result, string _count, string _title, string _tCount, DateTime _StartTime, DateTime _EndTime, string _order)
        {
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.Count = _count;
            this.Title = _title;
            this.TCount = _tCount;
            this.StartTime = _StartTime;
            this.EndTime = _EndTime;
            this.order = _order;
        }
        /// <summary>
        /// 通用获得实体构造函数
        /// </summary>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件判断一</param>
        /// <param name="_result">条件判断二</param>
        public ComponentsInfo(string _tableName, string _condition, string _result, string _tcondition, string _tresult, string _order)
        {
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.Tcondition = _tcondition;
            this.Tresult = _tresult;
            this.order = _order;

        }
        /// <summary>
        /// 通用获得实体构造函数
        /// </summary>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件判断一</param>
        /// <param name="_result">条件结果一</param>
        ///  <param name="_tcondition">条件判断二</param>
        /// <param name="_tresult">条件结果二</param>
        ///<param name="_tcondition">条件判断三</param>
        /// <param name="_tresult">条件结果三</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(string _tableName, string _condition, string _result, string _tcondition, string _tresult,string _scondition,string _sresult, string _order)
        {
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.Tcondition = _tcondition;
            this.Tresult = _tresult;
            this.Scondition = _scondition;
            this._sresult = _sresult;
            this.order = _order;

        }

        /// <summary>
        /// 通用获得实体总数构造函数
        /// </summary>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">排序</param>
        public ComponentsInfo(string _tableName,  string _order)
        {
            this.tableName = _tableName;
            this.order = _order;

        }

        /// <summary>
        /// 通用获得分页数据构造函数
        /// </summary>
        /// <param name="_startIndex">开始页</param>
        /// <param name="_endIndex">结束页</param>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件判断一</param>
        /// <param name="_result">条件结果一</param>
        /// <param name="_tcondition">条件判断二</param>
        /// <param name="_tresult">条件结果二</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(int _startIndex, int _endIndex, string _tableName, string _condition, string _result, string _tcondition, string _tresult, string _order)
        {
            this.startIndex = _startIndex;
            this.endIndex = _endIndex;
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.Tcondition = _tcondition;
            this.Tresult = _tresult;
            this.order = _order;

        }

        /// <summary>
        /// 通用获得分页数据构造函数
        /// </summary>
        /// <param name="_startIndex">开始页</param>
        /// <param name="_endIndex">结束页</param>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件判断一</param>
        /// <param name="_result">条件结果一</param>
        /// <param name="_tcondition">条件判断二</param>
        /// <param name="_tresult">条件结果二</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(int _startIndex, int _endIndex, string _tableName, string _condition, string _result,  string _order)
        {
            this.startIndex = _startIndex;
            this.endIndex = _endIndex;
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.order = _order;

        }

        /// <summary>
        /// 通用通过时间和条件一获得分页数据构造函数
        /// </summary>
        /// <param name="_startIndex">开始页</param>
        /// <param name="_endIndex">结束页</param>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件判断一</param>
        /// <param name="_result">条件结果一</param>
        /// <param name="_count">数量</param>
        /// <param name="_StartTime">开始时间</param>
        /// <param name="_EndTime">结束时间</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(int _startIndex, int _endIndex, string _tableName, string _condition, string _result, string _count, DateTime _StartTime, DateTime _EndTime, string _order)
        {
            this.startIndex = _startIndex;
            this.endIndex = _endIndex;
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.Count = _count;
            this.StartTime = _StartTime;
            this.EndTime = _EndTime;
            this.order = _order;

        }
        /// <summary>
        /// 通用通过时间和标题获得分页数据构造函数
        /// </summary>
        /// <param name="_startIndex">开始页</param>
        /// <param name="_endIndex">结束页</param>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件一</param>
        /// <param name="_result">结果一</param>
        /// <param name="_count">数量</param>
        /// <param name="_title">标题</param>
        /// <param name="_tCount">标题匹配结果</param>
        /// <param name="_StartTime">开始时间</param>
        /// <param name="_EndTime">结束时间</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(int _startIndex, int _endIndex, string _tableName, string _condition, string _result, string _count, string _title, string _tCount, DateTime _StartTime, DateTime _EndTime, string _order)
        {
            this.startIndex = _startIndex;
            this.endIndex = _endIndex;
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.Count = _count;
            this.Title = _title;
            this.TCount = _tCount;
            this.StartTime = _StartTime;
            this.EndTime = _EndTime;
            this.order = _order;

        }


        /// <summary>
        /// 通用通过时间和3个条件获得分页数据构造函数
        /// </summary>
        /// <param name="_startIndex">开始页</param>
        /// <param name="_endIndex">结束页</param>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件一</param>
        /// <param name="_result">结果一</param>
        /// <param name="_tcondition">条件二</param>
        /// <param name="_tresult">结果二</param>
        /// <param name="_scondition">条件三</param>
        /// <param name="_sresult">结果三</param>
        /// <param name="_count">数量</param>
        /// <param name="_StartTime">开始时间</param>
        /// <param name="_EndTime">结束时间</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(int _startIndex, int _endIndex, string _tableName, string _condition, string _result,string _tcondition, string _tresult,string _scondition, string _sresult, string _count, DateTime _StartTime, DateTime _EndTime, string _order)
        {
            this.startIndex = _startIndex;
            this.endIndex = _endIndex;
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.Tcondition = _tcondition;
            this.Tresult = _tresult;
            this.Scondition = _scondition;
            this.Sresult = _sresult;
            this.Count = _count;
            this.StartTime = _StartTime;
            this.EndTime = _EndTime;
            this.order = _order;
        }
        /// <summary>
        /// 通用通过时间和3个条件获得分页数据构造函数
        /// </summary>
        /// <param name="_startIndex">开始页</param>
        /// <param name="_endIndex">结束页</param>
        /// <param name="_tableName">表名</param>
        /// <param name="_condition">条件一</param>
        /// <param name="_result">结果一</param>
        /// <param name="_tcondition">条件二</param>
        /// <param name="_tresult">结果二</param>
        /// <param name="_scondition">条件三</param>
        /// <param name="_sresult">结果三</param>
        /// <param name="_count">数量</param>
        /// <param name="_StartTime">开始时间</param>
        /// <param name="_EndTime">结束时间</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(int _startIndex, int _endIndex, string _tableName, string _condition, string _result, string _tcondition, string _tresult, string _scondition, string _sresult, string _count,string _title,string _tcount, DateTime _StartTime, DateTime _EndTime, string _order)
        {
            this.startIndex = _startIndex;
            this.endIndex = _endIndex;
            this.tableName = _tableName;
            this.condition = _condition;
            this.result = _result;
            this.Tcondition = _tcondition;
            this.Tresult = _tresult;
            this.Scondition = _scondition;
            this.Sresult = _sresult;
            this.Count = _count;
            this.Title = _title;
            this.TCount = _tcount;
            this.StartTime = _StartTime;
            this.EndTime = _EndTime;
            this.order = _order;
        }


        /// <summary>
        /// 通用获得分页数据构造函数
        /// </summary>
        /// <param name="_startIndex">开始页</param>
        /// <param name="_endIndex">结束页</param>
        /// <param name="_tableName">表名</param>
        /// <param name="_order">排序</param>
        public ComponentsInfo(int _startIndex, int _endIndex, string _tableName,  string _order)
        {
            this.startIndex = _startIndex;
            this.endIndex = _endIndex;
            this.tableName = _tableName;
            this.order = _order;

        }

        /// <summary>
        /// 第二个条件匹配结果
        /// </summary>
        public string Tresult
        {
            get { return _tresult; }
            set { _tresult = value; }
        }

        /// <summary>
        /// 第二个条件名称
        /// </summary>
        public string Tcondition
        {
            get { return _tcondition; }
            set { _tcondition = value; }
        }



        /// <summary>
        /// 第三个条件名称
        /// </summary>
        public string Scondition
        {
            get { return _scondition; }
            set { _scondition = value; }
        }
        /// <summary>
        /// 第三个条件匹配结果
        /// </summary>
        public string Sresult
        {
            get { return _sresult; }
            set { _sresult = value; }
        }
        /// <summary>
        /// ID
        /// </summary>
        public string ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime
        {
            get { return _StartTime; }
            set { _StartTime = value; }
        }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime
        {
            get { return _EndTime; }
            set { _EndTime = value; }
        }
        /// <summary>
        /// 数量
        /// </summary>
        public string Count
        {
            get { return _count; }
            set { _count = value; }
        }

        /// <summary>
        /// 开始页数
        /// </summary>
        public int startIndex
        {
            get { return _startIndex; }
            set { _startIndex = value; }
        }
        /// <summary>
        /// 结束页数
        /// </summary>
        public int endIndex
        {
            get { return _endIndex; }
            set { _endIndex = value; }
        }
        /// <summary>
        /// 是否有条件
        /// </summary>
        public bool decide
        {
            get { return _decide; }
            set { _decide = value; }
        }
        /// <summary>
        /// 表的名称
        /// </summary>
        public string tableName
        {
            get { return _tableName; }
            set { _tableName = value; }
        }
        /// <summary>
        /// 条件名称1
        /// </summary>
        public string condition
        {
            get { return _condition; }
            set { _condition = value; }
        }
        /// <summary>
        /// 匹配条件结果1
        /// </summary>
        public string result
        {
            get { return _result; }
            set { _result = value; }
        }
        /// <summary>
        /// 排序
        /// </summary>
        public string order
        {
            get { return _order; }
            set { _order = value; }
        }
        /// <summary>
        /// 标题条件
        /// </summary>
        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }
        /// <summary>
        /// 标题结果
        /// </summary>
        public string TCount
        {
            get { return _tCount; }
            set { _tCount = value; }
        }
        #endregion Model
    }
}
